import React, {Component} from 'react';
import {
  View,
  Text,
  TouchableOpacity,
  Image,
} from 'react-native';

import Config from '../../config';
import SizeUtils from '../../common/SizeUtils';
import ImageConstants from '../../common/ImageConstants';
import {DateUtils} from '../../utils/Utils';
import CommonStyles from '../../common/CommonStyles';
import CommonListPage from '../common/CommonListPage';
import WH_PostItemView from '../workhard/WH_PostItemView';
import UserRequestPostAction from '../../actions/user/UserRequestPostAction';

export default class UserFabuPage extends CommonListPage {
  constructor(props) {
    super(props);

    this._dataKey = "post_id";
  }

  _onRenderItem(data, index) {
    return (<WH_PostItemView data={data} />)
  }

  _requestData(page, listView) {
      new UserRequestPostAction().call(listView, {type:"fabu", page:page, page_size:10});
  }
}
